package com.demo.matchfind;

import com.demo.common.Dish;
import com.demo.common.DishUtil;

import java.util.List;

public class TestNoneMatch {
    public static void main(String[] args) {
        List<Dish> menu = DishUtil.getDishes();
        boolean isHealthy = menu.stream()
                                 .noneMatch(d -> d.getCalories() >= 1000);
        System.out.println(isHealthy);
    }
}
